<!DOCTYPE html>
<html>
<head>
    <title>登录 - {:C('SITE_TITLE')}</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/login/css/style.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, 
    false); -->
    <!--function hideURLbar(){ window.scrollTo(0,1); } </script>-->
</head>
<body>
<!--     <h1>&nbsp;</h1> -->
<div class="container w3">
    <h2>亚马逊国内转运仓库(LDAP登录)</h2>
    <form>
        <div class="username">
            <span class="username">员工帐号:</span>
            <input type="text" class="name" placeholder="" required="" name="admin[account]" id="account">
            <div class="clear"></div>
        </div>
        <div class="password-agileits">
            <span class="username">员工密码:</span>
            <input type="password" name="admin[password]" id="pwd" class="password" placeholder="" required="">
            <div class="clear"></div>
        </div>
        <div class="login-w3">
            <input type="button" class="login submit" value="登录">
        </div>
        <!--  <div class="rem-for-agile">
             <input type="button" class="login findPwd" value="找回密码">
         </div> -->
        <div class="clear"></div>
        <h3><a href="http://userinfo.youkeshu.com/Auser/forgot/password/" target="_blank">忘记密码</a>|<a
                href="http://userinfo.youkeshu.com/Auser/change/password/" target="_blank">修改密码</a> | <a
                href="http://userinfo.youkeshu.com" target="_blank">修改信息</a></h3>
    </form>
</div>
<include file="Common/javascripts" />
<script type="text/javascript">
    //回车时默认登陆 hm
    $("body").keydown(function(event) {
        if (event.keyCode == "13") {
            $(".submit").click();
        }
    });
    $(function(){
        // 登录
        $(".submit").click(function(){
            if($("#account").val() == ''
                    || $("#pwd").val() == ''
            ){
                popup.alert("请填写帐号名和密码！");
                return false;
            }
            commonAjaxSubmit("{:U('Public/dsubmit')}");
        });

        // 找回密码
        $(".findPwd").click(function() {
            if($("#account").val() == ''){
                popup.alert("请填需要找回密码的帐号！");
                return false;
            }
            commonAjaxSubmit("{:U('Public/sendFindPwdMail')}");
        });
    });
</script>
</body>
</html>